package com.cloudcms.web.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class PropertyConfig {
    @Autowired
    private Environment env;
    public String getValue(String key){
        if (env == null){
            return "";
        }
        String value = env.getProperty(key);
        return  value == null ? "" : value;
    }
}
